package com.corx.network.mysqlstorage.repository;


import com.corx.network.mysqlstorage.common.PageQuery;
import com.corx.network.mysqlstorage.common.PageResult;
import com.corx.network.mysqlstorage.model.DeviceModelField;

import java.util.List;
import java.util.Optional;

/**
 * @author gx
 * @version 1.0.0
 */
public interface DeviceModelFieldRepository {
    Optional<DeviceModelField> findById(Long id);

    List<DeviceModelField> findByModelId(Long modelId);

    PageResult<DeviceModelField> findByPage(DeviceModelField model, PageQuery pageQuery);

    void save(DeviceModelField model);

    void update(DeviceModelField model);

    void delete(Long id);
}
